package com.opencloud.iot.client.model.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
/**
 *
 * 物联网-手表基础信息（电量）
 * @author yeyong
 * @date 2019-07-03
 */
@TableName("iot_watchinfo")
public class IotWatchinfo implements Serializable {

    private static final long serialVersionUID= 2619094672250590797L;

    /**
     * 手表mac地址
     */
    @TableId(value = "macaddress", type = IdType.ID_WORKER)
    private String macaddress;

    /**
     * 电量
     */
    private Float battery;

    /**
     * 最新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lasttime;

    private String version;
    /**
     * 当前状态
     */
    private Integer status;

    private String devicemac;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDevicemac() {
        return devicemac;
    }

    public void setDevicemac(String devicemac) {
        this.devicemac = devicemac;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getMacaddress() {
        return macaddress;
    }

    public void setMacaddress(String macaddress) {
        this.macaddress = macaddress;
    }

    public Float getBattery() {
        return battery;
    }

    public void setBattery(Float battery) {
        this.battery = battery;
    }

    public Date getLasttime() {
        return lasttime;
    }

    public void setLasttime(Date lasttime) {
        this.lasttime = lasttime;
    }

    @Override
    public String toString() {
        return "IotWatchinfo{" +
                "macaddress=" + macaddress +
                ", battery=" + battery +
                ", lasttime=" + lasttime +
                ", status=" + status +
                ", devicemac=" + devicemac +
                ", version=" + version +
                "}";
    }
}